/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class RoadConditionSensor {
    static categoryCode = '040010003';

    static categoryName = '路况传感器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return RoadConditionSensor.categoryCode;
    }

    get categoryName() {
        return RoadConditionSensor.categoryName;
    }

    getRoadHumidity(params) {
        return command({
            method: 'getRoadHumidity',
            methodId: 'pUjLa9Dz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRoadSlope(params) {
        return command({
            method: 'getRoadSlope',
            methodId: 'pZwphnTI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRoadSurfaceStatus(params) {
        return command({
            method: 'getRoadSurfaceStatus',
            methodId: 'peoWjICR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRoadTemperature(params) {
        return command({
            method: 'getRoadTemperature',
            methodId: 'ppbbFEeW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVehicleFlow(params) {
        return command({
            method: 'getVehicleFlow',
            methodId: 'pGeg9MjE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default RoadConditionSensor;
